<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>1块元素</title>
  <style>
    div {
      height: 300px;
      background-color: rebeccapurple;
      text-indent: 2em;
    }
  </style>

</head>
<body>
<div class="div1">霸道 独占一行</div>  
<!-- <p>
  <div>这里有问题</div>
</p> -->
<div>
  <a href="#"></a>
</div>
</body>
</html>